'''Test that we actually have a target document, and put up a message box if we dont
Returns true if we have an open doc, false otherwise
'''
if App.TargetDocument is None:
App.Do( Environment, 'MsgBox', {
'Buttons': App.Constants.MsgButtons.OK,
'Icon': App.Constants.MsgIcons.Stop,
'Text': RequiresOpenImage,
})
return App.Constants.Boolean.false
else:
return App.Constants.Boolean.true
# Begin Translatable Strings
# BevelSelection.PspScript:
LayerName_BevelSelection = u"Beveled Selection"
# Black and white pencil.PspScript:
LayerName_Blackandwhitepencil = u"Raster 2"
# Border with drop shadow.PspScript:
AlphaName = u"Selection #1"
# Flag.PspScript:
#AlphaName = u"Selection #1"
# Grey chart.PspScript:
GradientName = u"Foreground-background"
# Sloppy edges.PspScript:
#AlphaName = u"Selection #1"
# Toned greyscale.PspScript:
LayerName_Tonedgreyscale = u"Color Balance 1"
# Vignette.PspScript:
LayerName_Vignette = u"Raster 2"
# Photo edges.PspScript:
LayerName_Photoedges = u"Raster 2"
# SimpleCaption.PspScript:
ImageTooSmallMsg = u"The current image is too small to caption - it must be at least 200x200."
MultipleLayersMsg = u"The current image has multiple layers. This may lead to odd results.\nWe suggest flattening the image before continuing. Do you wish to flatten?"
CaptionPrompt = u"Enter a caption for the image. This will be below the image and centered."
CaptionTitle = u"Enter Image Caption"
PromotedLayerName = u"Image"
PageSurfaceLayerName = u"Page Surface"
AlbumPageLayerGroup = u"Album Page"
DropShadowLayerName = u"Drop shadow"
CaptionTextLayerName = u"Caption Text"
CaptionFontName2 = u"Tahoma"
# VectorMergeAndCutoutSelected.PspScript:
TwoOrMoreMsg = u"This script requires that two or more vector objects be selected."
# VectorMergeSelected.PspScript:
#TwoOrMoreMsg = u"This script requires that two or more vector objects be selected."
# AddPSP8FileLocations.PspScript:
NoPSP8FoldersFound = u"No PSP8 folders found."
FilesHaveBeenAdded = u"Files in '%s' have been added to the File Locations preferences."
Brushes = u"Brushes"
BumpMaps = u"Bump Maps"
DeformationMaps = u"Deformation Maps"
DisplacementMaps = u"Displacement Maps"
EnvironmentMaps = u"Environment Maps"
Gradients = u"Gradients"
Masks = u"Masks"
Palettes = u"Palettes"
Patterns = u"Patterns"
PictureFrames = u"Picture Frames"
PictureTubes = u"Picture Tubes"
PresetShapes = u"Preset Shapes"
Presets = u"Presets"
PrintTemplates = u"Print Templates"
QuickGuides = u"Quick Guides"
SampleImages = u"Sample Images"
ScriptsRestricted = u"Scripts-Restricted"
ScriptsTrusted = u"Scripts-Trusted"
Selections = u"Selections"
StyledLines = u"Styled Lines"
Swatches = u"Swatches"
Textures = u"Textures"
# AddPSP8FileLocationsALL.PspScript:
#NoPSP8FoldersFound = u"No PSP8 folders found."
#FilesHaveBeenAdded = u"Files in '%s' have been added to the File Locations preferences."
#Brushes = u"Brushes"
#BumpMaps = u"Bump Maps"
#DeformationMaps = u"Deformation Maps"
#DisplacementMaps = u"Displacement Maps"
#EnvironmentMaps = u"Environment Maps"
#Gradients = u"Gradients"
#Masks = u"Masks"
#Palettes = u"Palettes"
#Patterns = u"Patterns"
#PictureFrames = u"Picture Frames"
#PictureTubes = u"Picture Tubes"
#PresetShapes = u"Preset Shapes"
#Presets = u"Presets"
#PrintTemplates = u"Print Templates"
#QuickGuides = u"Quick Guides"
#SampleImages = u"Sample Images"
#ScriptsRestricted = u"Scripts-Restricted"
#ScriptsTrusted = u"Scripts-Trusted"
#Selections = u"Selections"
#StyledLines = u"Styled Lines"
#Swatches = u"Swatches"
#Textures = u"Textures"
# CapturePalette.PspScript:
RequiresPaletted = u"This script requires a paletted image. Would you like to reduce the color depth?"
NoPaletteFound = u"Internal error: No palette found"
GroutWidthMsg = u"GroutWidth value must be between 0 and 20"
ColorsPerRowMsg = u"ColorsPerRow value must be between 1 and 100"
TileSizeMsg = u"TileSize must be between 2 and 50"
NumColorsMsg = u"Number of colors must be between 2 and 1024"
ButtonMarginMsg = u"ButtonMargin must be less than half the tilesize"
ColorIs = u"Color %d is (%02X,%02X,%02X)"
# EXIFCaptioning.PspScript:
NoEXIFData = u"No EXIF data found on the current image."
ExposureMsg = u"f/%g aperture, %s exposure"
CaptionBackground = u"Caption Background"
EXIFCaption = u"EXIF Caption"
EXIFText = u"EXIF Text"
CaptionFontName = u"Arial"
# SplitCMYKtoLayerGroup.PspScript:
Black = u"Black"
BlackChannel = u"Black Channel"
Yellow = u"Yellow"
YellowChannel = u"Yellow Channel"
Magenta = u"Magenta"
MagentaChannel = u"Magenta Channel"
Cyan = u"Cyan"
CyanChannel = u"Cyan Channel"
CMYKChannels = u"CMYK Channels"
# SplitHSLtoLayerGroup.PspScript:
Lightness = u"Lightness"
LightnessChannel = u"Lightness Channel"
Saturation = u"Saturation"
SaturationChannel = u"Saturation Channel"
Hue = u"Hue"
HueChannel = u"Hue Channel"
HSLChannels = u"HSL Channels"
# SplitRGBtoLayerGroup.PspScript:
Blue = u"Blue"
BlueChannel = u"Blue Channel"
Green = u"Green"
GreenChannel = u"Green Channel"
Red = u"Red"
RedChannel = u"Red Channel"
RGBChannels = u"RGB Channels"
# JascUtils.py, PSPUtils.py
SelectionLayer = u"Selection promoted via script"
Pattern = u"Pattern"
Inline = u"Inline"
Gradient = u"Gradient"
Linear = u"Linear"
Radial = u"Radial"
Rectangular = u"Rectangular"
Sunburst = u"Sunburst"
Solid = u"Solid"
Null = u"Null"
Art = u"Art"
RequiresOpenImage = u"This script requires an open image."